/**
 * Copyright 2021 json.cn 
 */
package com.lawyer.entity;

import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table
public class CallBlackInfo {

	@Id
	@ApiModelProperty(name = "主键")
	private Long id;

	@ApiModelProperty(name = "AXB中的A号码")
	private String phone_no;
	@ApiModelProperty(name = "绑定关系ID")
	private long sub_id;
	@ApiModelProperty(name = "主叫拨打时间")
	private Date call_time;

	@ApiModelProperty(name = "被叫接听时间（通话计费开始时间）。如未接通，则等于release_time的时间。短信话单时，此值传短信接收时间")
	private String start_time;

	@ApiModelProperty(name = "通话结束时间，通话释放时间（通话计费结束时间）")
	private String release_time;

	@ApiModelProperty(name = "AXB中的B号码或者N号码")
	private String peer_no;
	@ApiModelProperty(name = "话记录的ID,长度限制在100个字符以内。")
	private String call_id;
	@ApiModelProperty(name = "商户Key")
	private String partner_key;
	@ApiModelProperty(name = "隐私号码,AXB中的X号码")
	private String secret_no;

	@ApiModelProperty(name = "呼叫类型。取值：0：主叫，即phone_no打给peer_no，  1：被叫，即peer_no打给phone_no")
	private int call_type;
	@ApiModelProperty(name = "对应的号池Key")
	private String pool_key;

	@ApiModelProperty(name = "X号码归属地")
	private String city;
	@ApiModelProperty(name = "外部业务ID")
	private String out_id;
	@ApiModelProperty(name = "未接通通话的原因， 0：正常通话。 1：黑名单拦截。 2：无绑定关系。 3：呼叫限制。 4：其他。")
	private int unconnected_cause;

	@ApiModelProperty(name = "被叫显号")
	private long called_display_no;

	@ApiModelProperty(name = "当前接续阶段。取值：IVR,CONTINUE,REJECT")
	private String control_type;

	@ApiModelProperty(name = "释放原因")
	private Integer release_cause;

	@ApiModelProperty(name = "无绑定关系时返回NO_SUBS_EXIST")
	private String control_msg;

	@ApiModelProperty(name = "通话释放方向。 取值： 0：平台释放。 1：主叫挂断。 2：被叫挂断。")
	private Integer release_dir;

	public void setPhone_no(String phone_no) {
		this.phone_no = phone_no;
	}

	public String getPhone_no() {
		return phone_no;
	}

	public void setSub_id(long sub_id) {
		this.sub_id = sub_id;
	}

	public long getSub_id() {
		return sub_id;
	}

	public void setCall_time(Date call_time) {
		this.call_time = call_time;
	}

	public Date getCall_time() {
		return call_time;
	}

	public void setPeer_no(String peer_no) {
		this.peer_no = peer_no;
	}

	public String getPeer_no() {
		return peer_no;
	}

	public void setCall_id(String call_id) {
		this.call_id = call_id;
	}

	public String getCall_id() {
		return call_id;
	}

	public void setPartner_key(String partner_key) {
		this.partner_key = partner_key;
	}

	public String getPartner_key() {
		return partner_key;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getStart_time() {
		return start_time;
	}

	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}

	public String getRelease_time() {
		return release_time;
	}

	public void setRelease_time(String release_time) {
		this.release_time = release_time;
	}



	public Integer getRelease_cause() {
		return release_cause;
	}

	public void setRelease_cause(Integer release_cause) {
		this.release_cause = release_cause;
	}

	public Integer getRelease_dir() {
		return release_dir;
	}

	public void setRelease_dir(Integer release_dir) {
		this.release_dir = release_dir;
	}

	public void setSecret_no(String secret_no) {
		this.secret_no = secret_no;
	}

	public String getSecret_no() {
		return secret_no;
	}

	public void setCall_type(int call_type) {
		this.call_type = call_type;
	}

	public int getCall_type() {
		return call_type;
	}

	public void setPool_key(String pool_key) {
		this.pool_key = pool_key;
	}

	public String getPool_key() {
		return pool_key;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCity() {
		return city;
	}

	public String getOut_id() {
		return out_id;
	}

	public void setOut_id(String out_id) {
		this.out_id = out_id;
	}

	public void setUnconnected_cause(int unconnected_cause) {
		this.unconnected_cause = unconnected_cause;
	}

	public int getUnconnected_cause() {
		return unconnected_cause;
	}

	public void setCalled_display_no(long called_display_no) {
		this.called_display_no = called_display_no;
	}

	public long getCalled_display_no() {
		return called_display_no;
	}

	public void setControl_msg(String control_msg) {
		this.control_msg = control_msg;
	}

	public String getControl_msg() {
		return control_msg;
	}

	public void setControl_type(String control_type) {
		this.control_type = control_type;
	}

	public String getControl_type() {
		return control_type;
	}

}